import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    // 先以静态路由作为菜单数据的初始值====最后处理之后的静态和动态的集合
    //  左侧菜单要显示都是根据这里来
    menuList: []
  },
  mutations: {
    setMenuList (state, asyncRoutes) {
      //  筛选之后的动态路由规则 asyncRoutes======当前所拥有的从8个中筛选
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  },
  actions: {

  },
}